using Furion.ConfigurableOptions;

using Microsoft.Extensions.Configuration;

namespace Abc.Core
{
    /// <summary>
    /// APP信息
    /// </summary>
    public class AppInfoOptions : IConfigurableOptionsListener<AppInfoOptions>
    {
        public string Name { get; set; }
        public string Version { get; set; }
        public string Company { get; set; }

        public void OnListener(AppInfoOptions options, IConfiguration configuration)
        {
            Name = options.Name;  // 实时的最新值
            Version = options.Version;  // 实时的最新值
            Company = options.Company;//公司
        }

        public void PostConfigure(AppInfoOptions options, IConfiguration configuration)
        {
        }
    }
}